<?php

require_once "core/db.php";

class Musers1 extends DB {

    private $_query;

    protected function getPlayers($start, $num) {
        /**
         * @param int $start
         * @param int $num
         */
        DB::getInstance()->openConnectionToGS();
        $this->_query = "SELECT `name`, `online` FROM `players` ORDER BY `online` DESC LIMIT $start, $num ";
        return DB::getInstance()->sql($this->_query);
        DB::getInstance()->closeConnection();
        unset($this->_query);
    }

}

?>